﻿namespace MODEL
{
    public partial class qgzx_salary
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_salary ToPOCO()
        {
            qgzx_salary poco = new qgzx_salary()
            {
                SalaryDisID = this.SalaryDisID,
                PerforID = this.PerforID,
                SalarySource = this.SalarySource,
                GrantMethod = this.GrantMethod,
                DrawReason = this.DrawReason,
                PositionName = this.PositionName,
                PositionId = this.PositionId,
                WorkStudentNum = this.WorkStudentNum,
                WorkStudentName = this.WorkStudentName,
                SalaryStandard = this.SalaryStandard,
                WorkingTime = this.WorkingTime,
                SumOfMoney = this.SumOfMoney,
                BeginTime = this.BeginTime,
                EndTime = this.EndTime,
                DistriTime = this.DistriTime,
                IsConvert = this.IsConvert,
                AuditStatus = this.AuditStatus,
                AuditReason = this.AuditReason,
                AuditTime = this.AuditTime,
                IsGrantSuccess = this.IsGrantSuccess
            };
            return poco;
        }
        #endregion

        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.Salary ToViewModel()
        {
            ViewModel.Salary poco = new ViewModel.Salary()
            {
                SalaryDisID = this.SalaryDisID,
                PerforID = this.PerforID,
                SalarySource = this.SalarySource,
                GrantMethod = this.GrantMethod,
                DrawReason = this.DrawReason,
                PositionName = this.PositionName,
                PositionId = this.PositionId,
                WorkStudentNum = this.WorkStudentNum,
                WorkStudentName = this.WorkStudentName,
                SalaryStandard = this.SalaryStandard,
                WorkingTime = this.WorkingTime,
                SumOfMoney = this.SumOfMoney,
                BeginTime = this.BeginTime,
                EndTime = this.EndTime,
                DistriTime = this.DistriTime,
                IsConvert = this.IsConvert,
                AuditStatus = this.AuditStatus,
                AuditReason = this.AuditReason,
                AuditTime = this.AuditTime,
                IsGrantSuccess = this.IsGrantSuccess
            };
            return poco;
        }
        #endregion
    }
}
